import request from '@/utils/request'
export function getExamQuestion(params) {
  return request.get('exam/question', { params })
}
export function getSubjectTree() {
  return request.get('subject/tree')
}
export function updateShow(data) {
  return request.post('exam/question/show', data)
}
export function updateCheck(data) {
  return request.post('exam/question/check', data)
}
export function delQuestion(id) {
  return request.delete('exam/question/' + id)
}
export function addQuestion(data) {
  return request.post('exam/question', data)
}
export function updataQuestion(id) {
  return request.get('exam/question/' + id)
}
export function putQuestion(data) {
  return request.put('exam/question/' + data.id, data)
}
